/*program HelloWorld
SIMPLE test program just to get the VPC compiler to complete,
without invoking avr-gcc or any other compiler afterwards.
@ Philip Russell, Micah Wendell
*/

program Test3 {
    entrypoint main = Test3.main;
}

component Test3 {

	constructor()
	{
		local val:int;
		val = returnInt();
	}

	method m1(p1: int, p2:int, p3: char, p4: boolean, p5: char[] ):void
    {
    	m2();
    	m3();
    }
    
    method m3()
    {
    	m2();
    }
    
    method main(args: char[][]): char[] {
    
    m1(returnInt(),2,'a',true, "I hat cats!");
	return "Hello World!\n";
    }
    
    method m2()
    {
    	return;
    }

    method returnInt():int
    {
    	local integer:int;
    	local i:int;
    	i = 2;
    	integer = 1;
    	
        switch(integer)
        {
        	case (4) integer = 3;
        	default integer = 5;
        }
        
        return 5;
    }
    
    method m4():int
    {
    	return returnInt();
    }
} 

